package com.ruoyi.controller;

import com.ruoyi.common.core.domain.model.Region;
import com.ruoyi.service.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description:
 * @projectName: zf_master
 * @package: com.ruoyi.controller
 * @className: RegionController
 * @author: gyh
 * @date: 2024/9/14 15:05
 * @version: 1.0
 */
@RestController
@RequestMapping("/region/region")
public class RegionController {
    @Autowired
    private RegionService regionService;

    /**
     * @return * @return: java.util.List<com.ruoyi.common.core.domain.model.Region>
     * @description 获取所有地区
     * @author gyh
     * @date 2024/9/14 15:06
     */
    @GetMapping("/list")
    public List<Region> getAllRegion() {
        return regionService.getAllRegion();
    }
}
